package com.aaa.java14;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

/**
 * @author ：Teacher陈（86521760@qq.com）
 * @date ：Created in 2022/7/18 11:46
 * @description：我的属性文件
 * @modified By：
 * @version: 1.0
 */
public class MyProperties {
    public static void main(String[] args) {
        Properties properties =new Properties();
        try {
            InputStream inStream = new FileInputStream("D:\\work\\AAA带班\\qy156\\code\\qy156java\\src\\log4J.properties");
            properties.load(inStream);
            Object o = properties.get("log4j.appender.File.File");
            System.out.println(o);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
